package com.han.hotelplat.pojo.hotel;

import java.util.Date;
import java.util.List;

import com.han.hotelplat.model.AreaModel;
import com.han.hotelplat.pojo.hotelmanager.Hotelmanager;
import com.han.hotelplat.pojo.hotelroom.HotelRoom;

/**
 * Hotel entity. @author MyEclipse Persistence Tools
 */

public class Hotel implements java.io.Serializable {

	// Fields

	/**   
		 *   
		 */   
	private Integer id;
	private String facepic;
	private String license;
	private String hotelname;
	private Integer hoteltype;
	private Float taskroomcount;
	private Float roomcount;
	private String tel;
	private Integer state;
	private String address;
	private Integer area;
	private Date creattime;
	private Integer level;
	private String roompic;
	private String location;
	private Float unitprice;
	private Float emunitprice;
	private String userid;//酒店管家的用户id
	private String contractpic;//合同图片
	private Float holidayprice;
	private Float holidayemprice;
	private String welfare;//福利
	
	private AreaModel[] areaModel;
	// Constructors
	private String realname;
	private Float balance;
	private Float overdraft;
	private int usercount;
	private List<Hotelmanager>users; 
	private List<HotelRoom>rooms; 
	/** default constructor */
	public Hotel() {
		
	}

	/** full constructor */
	public Hotel(String facepic, String license, String hotelname,
			Integer hoteltype, Float taskroomcount, Float roomcount,
			String tel, Integer state, String address, Integer area,
			Date creattime, Integer level, String roompic, String location,
			Float unitprice, Float emunitprice,String userid,
			String contractpic,Float holidayprice,Float holidayemprice,
			String welfare) {
		this.facepic = facepic;
		this.license = license;
		this.hotelname = hotelname;
		this.hoteltype = hoteltype;
		this.taskroomcount = taskroomcount;
		this.roomcount = roomcount;
		this.tel = tel;
		this.state = state;
		this.address = address;
		this.area = area;
		this.creattime = creattime;
		this.level = level;
		this.roompic = roompic;
		this.location = location;
		this.unitprice = unitprice;
		this.emunitprice = emunitprice;
		this.userid = userid;
		this.contractpic = contractpic;
		this.holidayprice  = holidayprice;
		this.holidayemprice = holidayemprice;
		this.welfare = welfare;
	}

	/**
	 * h.id, h.area, h.hoteltype,hm.userid,hm.realname,hm.tel,h.creattime,h.state
		 * @description	
		 * @author  han1088
		 * @return
	 */
	public Hotel(Integer id, String hotelname, Integer area,  Integer hoteltype, String userid, String realname,
			String tel, Date creattime, Integer state, Float balance, Float overdraft){
		this.id = id;
		this.area = area;
		this.hoteltype =hoteltype;
		this.userid = userid;
		this.realname = realname;
		this.tel = tel;
		this.creattime = creattime;
		this.state = state;
		this.hotelname = hotelname;
		this.balance = balance;
		this.overdraft = overdraft;
	}
	/**
	 * h.level, h.emunitprice,h.unitprice,h.doublemoney
		 * create a instance  Hotel.   
		 * @param id
		 * @param hotelname
		 * @param area
		 * @param hoteltype
		 * @param userid
		 * @param realname
		 * @param tel
		 * @param creattime
		 * @param state
		 * @param balance
		 * @param overdraft
	 */
	public Hotel(Integer id, String hotelname, Integer area,  Integer hoteltype, 
			String userid, String realname,String tel, Date creattime, Integer state,
			Float balance, Float overdraft, Integer level, Float emunitprice,Float unitprice
			){
		this.id = id;
		this.area = area;
		this.hoteltype =hoteltype;
		this.userid = userid;
		this.realname = realname;
		this.tel = tel;
		this.creattime = creattime;
		this.state = state;
		this.hotelname = hotelname;
		this.balance = balance;
		this.overdraft = overdraft;
		this.level = level;
		this.emunitprice = emunitprice;
		this.unitprice = unitprice;
	}
	
	/**
	 * h.level, h.emunitprice,h.unitprice,h.doublemoney
		 * create a instance  Hotel.   
		 * @param id
		 * @param hotelname
		 * @param area
		 * @param hoteltype
		 * @param userid
		 * @param realname
		 * @param tel
		 * @param creattime
		 * @param state
		 * @param balance
		 * @param overdraft
	 */
	public Hotel(Integer id, String hotelname, Integer area,  Integer hoteltype, 
			Date creattime, Integer state,Float balance, Float overdraft, 
			Integer level, Float emunitprice,Float unitprice
			){
		this.id = id;
		this.area = area;
		this.hoteltype =hoteltype;
		this.creattime = creattime;
		this.state = state;
		this.hotelname = hotelname;
		this.balance = balance;
		this.overdraft = overdraft;
		this.level = level;
		this.emunitprice = emunitprice;
		this.unitprice = unitprice;
	}
	
	
	public Hotel(Integer id, String hotelname){
		this.id = id;
		this.hotelname = hotelname;
	}
	
	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getFacepic() {
		return this.facepic;
	}

	public void setFacepic(String facepic) {
		this.facepic = facepic;
	}

	public String getLicense() {
		return this.license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	public String getHotelname() {
		return this.hotelname;
	}

	public void setHotelname(String hotelname) {
		this.hotelname = hotelname;
	}

	public Integer getHoteltype() {
		return this.hoteltype;
	}

	public void setHoteltype(Integer hoteltype) {
		this.hoteltype = hoteltype;
	}

	public Float getTaskroomcount() {
		return this.taskroomcount;
	}

	public void setTaskroomcount(Float taskroomcount) {
		this.taskroomcount = taskroomcount;
	}

	public Float getRoomcount() {
		return this.roomcount;
	}

	public void setRoomcount(Float roomcount) {
		this.roomcount = roomcount;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getArea() {
		return this.area;
	}

	public void setArea(Integer area) {
		this.area = area;
	}

	public Date getCreattime() {
		return this.creattime;
	}

	public void setCreattime(Date creattime) {
		this.creattime = creattime;
	}

	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getRoompic() {
		return roompic;
	}

	public void setRoompic(String roompic) {
		this.roompic = roompic;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Float getUnitprice() {
		return unitprice;
	}

	public void setUnitprice(Float unitprice) {
		this.unitprice = unitprice;
	}

	public Float getEmunitprice() {
		return emunitprice;
	}

	public void setEmunitprice(Float emunitprice) {
		this.emunitprice = emunitprice;
	}

	public AreaModel[] getAreaModel() {
		return areaModel;
	}

	public void setAreaModel(AreaModel[] areaModel) {
		this.areaModel = areaModel;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getContractpic() {
		return contractpic;
	}

	public void setContractpic(String contractpic) {
		this.contractpic = contractpic;
	}

	public Float getBalance() {
		return balance;
	}

	public void setBalance(Float balance) {
		this.balance = balance;
	}

	public Float getOverdraft() {
		return overdraft;
	}

	public void setOverdraft(Float overdraft) {
		this.overdraft = overdraft;
	}

	public Float getHolidayprice() {
		return holidayprice;
	}

	public void setHolidayprice(Float holidayprice) {
		this.holidayprice = holidayprice;
	}

	public Float getHolidayemprice() {
		return holidayemprice;
	}

	public void setHolidayemprice(Float holidayemprice) {
		this.holidayemprice = holidayemprice;
	}

	public String getWelfare() {
		return welfare;
	}

	public void setWelfare(String welfare) {
		this.welfare = welfare;
	}

	public int getUsercount() {
		return usercount;
	}

	public void setUsercount(int usercount) {
		this.usercount = usercount;
	}

	public List<Hotelmanager> getUsers() {
		return users;
	}

	public void setUsers(List<Hotelmanager> users) {
		this.users = users;
	}

	public List<HotelRoom> getRooms() {
		return rooms;
	}

	public void setRooms(List<HotelRoom> rooms) {
		this.rooms = rooms;
	}
	
}